package com.yue.se.reflect.annotation;

import java.lang.annotation.Annotation;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2016/9/9<br/>
 *
 * @author QiuYang
 */
@MyAnnotation("BLUE")
public class TestAnnotation {
    public static void main(String[] args) {
        Annotation[] annotations =TestAnnotation.class.getAnnotations();
        for (Annotation a : annotations) {
            if (a instanceof MyAnnotation){
                System.out.println(a + " " + ((MyAnnotation) a).value());
            }
        }
    }
}
